package com.ushahidi.android.app.ui;
import android.R;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.Gravity;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
 
public class TextImageButton extends LinearLayout{

	private TextView mText;
	private ImageView mArrow;
	
	public TextImageButton(Context context,AttributeSet attrs) {
		super(context,attrs);
		/*
		LinearLayout.LayoutParams lp=new LinearLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.MATCH_PARENT);
		//lp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
		lp.gravity= Gravity.RIGHT;
		LinearLayout.LayoutParams lp2=new LinearLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);
		//lp2.addRule(RelativeLayout.ALIGN_PARENT_LEFT);
		lp2.gravity=Gravity.LEFT;
	    mText = new TextView(context,attrs);
	    mText.setLayoutParams(lp2);
	    //mText.setGravity(android.view.Gravity.CENTER_HORIZONTAL);
	    mText.setPadding(0,0,0,0);
	    mText.setTextSize(24);
	    
	    mArrow=new ImageView(context,attrs);
	    mArrow.setLayoutParams(lp);
	    setBackgroundResource(android.R.drawable.btn_default);
	    setClickable(true);
	    setFocusable(true);
	    setOrientation(LinearLayout.HORIZONTAL);
	    addView(mText);
	    addView(mArrow);
	    */
	}

}
